// state
export function state() {
    return {
      bNav: false,
      bLoading: false
    }
  }
  
  // mutations
  export const mutations = {
    M_UPDATE_NAV(state, payload) {
      state.bNav = payload
    },
    M_UPDATE_LOADING(state, payload) {
      state.bLoading = payload;
    }
  }
  // actions
  export const actions = {
    nuxtServerInit(state,e) {
      // 初始化东西到状态树
      console.log(e)
    }
  }
  
  // getters
  export const getters = {
    getNav(state) {
      return state.bNav ? '显示' : '隐藏'
    }
  }
  
  export default {namespaced: true, state, mutations, actions, getters}